package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._40BootRestartResult;
import com.zxq.uart.frame.encoder._40BootRestartCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _40BootRestartController extends PlatformExchange<_40BootRestartCmd, _40BootRestartResult> {


    @Override
    public Integer getCmd() {
        return 0x40;
    }

    @PostMapping("exchange/40")
    @Override
    public ResultVO<_40BootRestartResult> exchange(@RequestBody _40BootRestartCmd order) {
        return super.exchange(order);
    }

    @Override
    public _40BootRestartResult getResult() {
        return new _40BootRestartResult();
    }

}
